package com.mytx.mapper;

import com.mytx.pojo.Task;
import com.mytx.pojo.TaskExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TaskMapper {
    /**
     * 批量更新
     *
     * @param taskIdList        要更新的任务id集合
     * @param taskStatusExpired
     * @param date
     */
    void updateBatch(List<String> taskIdList, int taskStatusExpired, Date date);

    //----------------------------------------------------分割线------------------------------------------------

    int countByExample(TaskExample example);

    int deleteByExample(TaskExample example);

    int deleteByPrimaryKey(String id);

    int insert(Task record);

    int insertSelective(Task record);

    List<Task> selectByExample(TaskExample example);

    Task selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Task record, @Param("example") TaskExample example);

    int updateByExample(@Param("record") Task record, @Param("example") TaskExample example);

    int updateByPrimaryKeySelective(Task record);

    int updateByPrimaryKey(Task record);

}